﻿using ReflectionStudio.Core.Events;
using System;
using System.ComponentModel;
using System.Data;
using System.Windows;
using System.Linq;
using WPFExcelReport.Helpers;
using System.Windows.Input;
using System.Windows.Controls;
namespace WPFExcelReport
{
    /// <summary>
    /// 专用于布卷剪布
    /// </summary>
    public partial class TAV04
    { 
        public TAV04()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VWBBST();
            this.DataContext = MV;
            InitializeComponent();

        }
        public override void OnEXAUFChg(string vlaue)
        {
            TBMain.Clear();
            if (EXAUF.Length < 15)
                return;
            dwData = TBMain.NewRow();
            dwData["WBBMANDANT"] = app.Mandant;
            dwData["WBBAUFTYP"] = "V";
            dwData["WBBAUFKRS"] = EXAUF.Substring(0, 2);
            dwData["WBBAUFLFD"] = EXAUF.Substring(2, 6);
            dwData["WBBAUFPOS"] = EXAUF.Substring(8, 3);
            dwData["WBBTP"] = EXAUF.Substring(11, 4);
            SResult =TMV.QWB26(dwData);
            MergeData(SResult, false);
            base.OnEXAUFChg(vlaue);
        }
       
    }
}
